<div class="container">
    <div class="center-block login-box">

        <h4 class="text-muted" ng-show="envIsOk && !envMap['isIE']">修改个人信息</h4>
        <form class="mt-20" method="post" ng-submit="upUserInfo()" name="form" novalidate ng-show="envIsOk && !envMap['isIE']">

            <!-- 密码 -->
            <div class="form-group" ng-class="{'has-error': form.oldPassword.$dirty && form.oldPassword.$invalid }">
                <input type="password" class="form-control" name="oldPassword" ng-model="user.oldPassword" required="required" ng-minlength="5" ng-maxlength="30" maxlength="30" placeholder="输入新登录密码" pass-input>
                <p class="help-block">
                    <span ng-show="form.oldPassword.$dirty && form.oldPassword.$error.required">请填写密码</span>
                    <span ng-show="form.oldPassword.$dirty && form.oldPassword.$error.minlength">密码需要5位及以上</span>
                    <span ng-show="form.oldPassword.$dirty && form.oldPassword.$error.maxlength">密码长度需要20位及以下</span>
                    <span ng-show="form.oldPassword.$dirty && form.oldPassword.$error.passerror">密码输入有误，请重试</span>
                </p>
            </div>
            <div class="form-group" ng-class="{'has-error': form.newPassword.$dirty && form.newPassword.$invalid}">
                <input type="password" class="form-control" name="newPassword" ng-model="user.newPassword" required="required" ng-minlength="5" ng-maxlength="30" maxlength="30" placeholder="确认新登录密码" pass-input>
                <p class="help-block">
                    <span ng-show="form.newPassword.$dirty && form.newPassword.$error.required">请填写密码</span>
                    <span ng-show="form.newPassword.$dirty && form.newPassword.$error.minlength">密码需要5位及以上</span>
                    <span ng-show="form.newPassword.$dirty && form.newPassword.$error.maxlength">密码长度需要20位及以下</span>
                    <span ng-show="form.newPassword.$dirty && form.newPassword.$error.passerror">密码输入有误，请重试</span>
                    <!--<span ng-show="user.newPassword != user.oldPassword">两次密码不一致</span>-->
                </p>
            </div>
            <!-- 手机号 -->
            <div class="form-group" ng-class="{'has-error': form.telePhone.$dirty && form.telePhone.$invalid }">
                <input type="text" class="form-control" name="telePhone" ng-model="user.telePhone" required="required" placeholder="手机号" maxlength="11">
            </div>
            <!-- 邮箱 -->
            <div class="form-group" ng-class="{'has-error': form.email.$dirty && form.email.$invalid }">
                <input type="text" class="form-control" name="email" ng-model="user.email" required="required" placeholder="邮箱" maxlength="31">
            </div>

            <!-- 登录 -->
            <div class="form-group">
                <button type="submit" class="btn btn-primary btn-block">修改信息</button>
            </div>
        </form>

        <!--[if lt IE 9]>
        <div class="text-danger fz-13 mt-10">检测到您在使用IE浏览器，可能会丢失部分功能。强烈建议您使用Chrome或者Firefox浏览器</div>
        <![endif]-->
    </div>
</div>
